package net.jforum.util.preferences;

import org.apache.log4j.Logger;

import net.jforum.util.FileChangeListener;
import net.jforum.util.KeywordFilter;

/**
 * @ author  张洋 jackson.zhang@ericsson.com
 * @ version 创建时间 ：May 18, 2010  11:42:44 PM
 * @ description : 
 */
public class BadWordFileListener implements FileChangeListener{
	private static final Logger logger = Logger.getLogger(BadWordFileListener.class);

	@Override
	public void fileChanged(String filename) {
     logger.info("Reloading bad words file"+filename);
     KeywordFilter.initial(filename);
     logger.info("Reloading bad words file end !");
	}

}
